/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package appClientHandler;

import entities.Cart;
import sessions.AccountFacadeLocal;
import sessions.CategorieFacadeLocal;
import sessions.CommandeFacadeLocal;
import sessions.ProductFacadeLocal;
import sessions.ProductStoreFacadeLocal;

import javax.ejb.EJB;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.util.Map;
import java.util.Map.Entry;
import javax.annotation.Resource;
import javax.transaction.UserTransaction;



/**
 *
 * eCOM - Adopte un Presta - Mars-Avril 2013
 * @author Kheira, Jef, William, Tuan-Long
 */
public abstract class AbstractAUPBean {
    @Resource
    protected UserTransaction ux;
    @EJB
    protected CommandeFacadeLocal commandeFacade;
    @EJB
    protected AccountFacadeLocal accountFacade;
    @EJB
    protected CategorieFacadeLocal categorieFacade;
    @EJB
    protected ProductStoreFacadeLocal storeFacade;
    @EJB
    protected ProductFacadeLocal productFacade;
    protected String output;
    protected Cart cart;
    protected List<String> cartErrors;

    public abstract void authenticate(String login, String password);
    
    public String getOutput() 
    {
	return output;
    }

    public void setOutput(String output) 
    {
	this.output = output;
    }
    
}
